

import EN from './en.js'
import CN from './cn.js'
import {createI18n} from "vue-i18n";
const messages = {
    'cn': CN,
    'en': EN,
}

const i18n = createI18n({
    globalInjection: true,// 全局注入 $t 函数
    fallbackLocale: 'cn', // set fallback locale
    locale: 'cn',    // 语言标识
    legacy: false,
    messages
})

export default i18n
